<?php /* @var $this Controller */ 
$appUrl = Yii::app()->request->baseUrl;
if($_GET!=null){
	$lang = $_GET['lang'];
}
else{
	$lang = "English";
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<title>Community Connection</title>
	<link rel="stylesheet" href="<?php echo $appUrl; ?>/css/flexslider2.css" type="text/css" />
	<link rel="stylesheet" href="<?php echo $appUrl; ?>/css/style.css" type="text/css" />
	
	<script type="text/javascript" src="<?php echo $appUrl; ?>/js/jquery.min.js"></script>
	<script type="text/javascript" src="<?php echo $appUrl; ?>/js/jquery.leanModal.min.js"></script>
	
	<script type="text/javascript" src="<?php echo $appUrl; ?>/js/scrollnews.js"></script>
	


</head>

<body><div id="total">

<div class="header">
	<div class="logocontainer">
		<a href="#"><img class="logoimg" src="<?php echo $appUrl; ?>/images/headerlogo.jpg"></a>
	</div>	
	<div class="search">
		<input style="float:left;" type="text" value="Search..." onfocus="if (this.value == 'Search...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search...';}">
		<div class="button-search">
		
		</div>
		<?php echo CHtml::dropDownList( 'lang', 'lang',array('0' => 'Select language','1' => 'English', '2' => '繁體','3'=>'中文') ,array('Onchange'=> 'selectLanguage()'));  ?>

	<script>
	function selectLanguage(){
		var lang = document.getElementById("lang");
		if(lang.selectedIndex==1){
			self.location='/cc/index.php/site/index?lang=en_us';
		}
		else if(lang.selectedIndex==2){
			self.location='/cc/index.php/site/index?lang=zh_tw';
		}
		else if (lang.selectedIndex==3){
			self.location='/cc/index.php/site/index?lang=zh_cn';
		}
	}
	</script>
	</div>
	
	
</div>





	<?php echo $content; ?>


	<div class="footer">
		<div class="footercontainer">
				<div class="logo2container">
							<div class="divheader"><h2>Proudly Supported By</h2></div>
								<div class="supporter">
											<a><img class="footerlogo" src="<?php echo $appUrl; ?>/images/logo1.jpg"></a>
											<a><img class="footerlogo"  src="<?php echo $appUrl; ?>/images/logo2.gif"></a>
											<a><img class="footerlogo"  src="<?php echo $appUrl; ?>/images/logo3.png"></a>
											<a><img class="footerlogo"  src="<?php echo $appUrl; ?>/images/logo4.jpg"></a>
											<a><img class="footerlogo"  src="<?php echo $appUrl; ?>/images/logo5.jpg"></a>
								</div>
							</div>
				</div>
				
				<div class="copyright">
					<p>Copyright &copy 2013  <a href="#" target="_blank">Community Connection</a></p>
				</div>
		</div>
	</div><!-- footer -->

</div></body>
</html>
